package com.mmp.main.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.mmp.common.util.SearchRequired;

/**
 * The persistent class for the hospital_device_ppm_detail database table.
 *
 */
@Entity
@Table(name = "hospital_device_ppm_detail")
@NamedQuery(name = "HospitalDevicePpmDetail.findAll", query = "SELECT h FROM HospitalDevicePpmDetail h")
public class HospitalDevicePpmDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Basic(optional = false)
	@Column(name = "pk_id")
	private Integer pkId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "visit_date")
	private Date visitDate;

	@Column(name = "visit_month")
	@SearchRequired
	private Integer visitMonth;

	@Column(name = "visit_year")
	@SearchRequired
	private Integer visitYear;

	private String visit_report_URL;

	// bi-directional many-to-one association to HospitalDevice
	@ManyToOne
	@JoinColumn(name = "device_id")
	@SearchRequired(isObject = true, fields = { "id", "lookupDeviceCategory" })
	private HospitalDevice hospitalDevice;

	private String absence_report_URL;

	@Column(name = "visit_cost")
	private Float visitCost;

	@Column(name = "delay_penalty")
	private Float delayPenalty;

	private String subcontractor;

	@Column(name = "absence_reason")
	private String absenceReason;

	@Column(name = "visit_status")
	private Integer visitStatus;

	public HospitalDevicePpmDetail() {
	}

	public Integer getPkId() {
		return this.pkId;
	}

	public void setPkId(Integer pkId) {
		this.pkId = pkId;
	}

	public void setSubcontractor(String subcontractor) {
		this.subcontractor = subcontractor;
	}

	public String getSubcontractor() {
		return subcontractor;
	}

	public void setAbsence_report_URL(String absence_report_URL) {
		this.absence_report_URL = absence_report_URL;
	}

	public String getAbsence_report_URL() {
		return absence_report_URL;
	}

	public void setVisitCost(Float visitCost) {
		this.visitCost = visitCost;
	}

	public Float getVisitCost() {
		return visitCost;
	}

	public void setDelayPenalty(Float delayPenalty) {
		this.delayPenalty = delayPenalty;
	}

	public Float getDelayPenalty() {
		return delayPenalty;
	}

	public void setAbsenceReason(String absenceReason) {
		this.absenceReason = absenceReason;
	}

	public String getAbsenceReason() {
		return absenceReason;
	}

	public void setVisitStatus(Integer visitStatus) {
		this.visitStatus = visitStatus;
	}

	public Integer getVisitStatus() {
		return visitStatus;
	}

	public Date getVisitDate() {
		return this.visitDate;
	}

	public void setVisitDate(Date visitDate) {
		this.visitDate = visitDate;
	}

	public Integer getVisitMonth() {
		return this.visitMonth;
	}

	public void setVisitMonth(Integer visitMonth) {
		this.visitMonth = visitMonth;
	}

	public String getVisit_report_URL() {
		return this.visit_report_URL;
	}

	public void setVisit_report_URL(String visit_report_URL) {
		this.visit_report_URL = visit_report_URL;
	}

	public Integer getVisitYear() {
		return this.visitYear;
	}

	public void setVisitYear(Integer visitYear) {
		this.visitYear = visitYear;
	}

	public HospitalDevice getHospitalDevice() {
		return this.hospitalDevice;
	}

	public void setHospitalDevice(HospitalDevice hospitalDevice) {
		this.hospitalDevice = hospitalDevice;
	}

}
